package com.wlcorp.forcazamis.business.system.impl;

import com.wlcorp.forcazamis.business.system.ICompanyService;
import com.wlcorp.forcazamis.dao.system.ICompanyDAO;
import com.wlcorp.forcazamis.domain.system.Company;
import com.wlcorp.forcazamis.exception.ServiceException;
import com.wlcorp.forcazamis.sys.BaseService;

public class CompanyServiceImpl extends BaseService implements ICompanyService {

	private ICompanyDAO companyDAO;

	public Company getCompany() throws ServiceException {
		return companyDAO.getCompany();
	}

	public Company getCompanyById(Long companyId) throws ServiceException {
		return companyDAO.getCompany();
	}

	public void saveCompany(Company company) throws ServiceException {
		companyDAO.saveCompany(company);
	}

	public void updateCompany(Company company) throws ServiceException {
		companyDAO.updateCompany(company);
	}

	public ICompanyDAO getCompanyDAO() {
		return companyDAO;
	}

	public void setCompanyDAO(ICompanyDAO companyDAO) {
		this.companyDAO = companyDAO;
	}
}
